﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <!--BEGIN BUTTON-->
    <Style x:Key="ControlButton" TargetType="{x:Type Button}">
        <Setter Property="Foreground" Value="{DynamicResource BrushButtonForeground}"/>
        <Setter Property="FontFamily" Value="Tahoma"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontStyle" Value="Normal"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Border" HorizontalAlignment="Stretch" Background="{DynamicResource BrushButtonBackground}" BorderBrush="{DynamicResource BrushButtonBorder}" BorderThickness="0.7" CornerRadius="4" Height="22" Padding="5,0,5,0">
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Width="Auto" TextElement.Foreground="White"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsDefault" Value="True">
                            <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDefault}" TargetName="Border"/>
                            <Setter Property="BorderThickness" Value="2" TargetName="Border"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundHover}" TargetName="Border"/>
                            <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderHover}" TargetName="Border"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="true">
                            <Setter Property="BorderThickness" Value="1.5" TargetName="Border"/>
                            <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderFocused}" TargetName="Border"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundPressed}" TargetName="Border"/>
                            <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderPressed}" TargetName="Border"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Foreground" Value="{DynamicResource BrushButtonForegroundDisabled}"/>
                            <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundDisabled}" TargetName="Border"/>
                            <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDisabled}" TargetName="Border"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON-->
    
    <!--BEGIN BUTTON WINDOW-->
    <Style x:Key="ControlButtonMinimize" TargetType="{x:Type Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="53.2963" Canvas.Top="0.125" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonWindowBorder}" Data="{DynamicResource IconButtonWindow}" Fill="{DynamicResource BrushButtonWindowBackground}"/>
                        <Rectangle Width="7.33339" Height="2.41693" Canvas.Left="3.60425" Canvas.Top="26.3555" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{x:Null}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundDisabled}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonWindowBorderDisabled}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlButtonMaximize" TargetType="{x:Type Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="53.2963" Canvas.Top="0.125" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonWindowBorder}" Data="{DynamicResource IconButtonWindow}" Fill="{DynamicResource BrushButtonWindowBackground}"/>
                        <Path Width="6.74095" Height="6.00024" Canvas.Left="57.1968" Canvas.Top="4.39581" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}" Data="{DynamicResource IconButtonMaximize}" Stroke="{DynamicResource BrushButtonWindowIconBorder}" StrokeThickness="0.5"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{x:Null}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundDisabled}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonWindowBorderDisabled}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="ControlButtonRestore" TargetType="{x:Type Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="53.2963" Canvas.Top="0.125" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonWindowBorder}" Data="{DynamicResource IconButtonWindow}" Fill="{DynamicResource BrushButtonWindowBackground}"/>
                        <Viewbox x:Name="Group_4_Copy" Width="7.833" Height="6.362" Canvas.Left="3.563" Canvas.Top="4.09">
                            <Canvas Width="7.83331" Height="6.36212">
                                <Path Width="5.10244" Height="4.68756" Canvas.Left="-7.62939e-006" Canvas.Top="1.67456" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}" Data="{DynamicResource IconButtonRestorePath1}" Stroke="{DynamicResource BrushButtonWindowIconBorder}" StrokeThickness="0.5"/>
                                <Path Width="5.10246" Height="4.6875" Canvas.Left="2.73086" Canvas.Top="0" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}" Data="{DynamicResource IconButtonRestorePath2}" Stroke="{DynamicResource BrushButtonWindowIconBorder}" StrokeThickness="0.5"/>
                            </Canvas>
                        </Viewbox>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{x:Null}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundDisabled}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonWindowBorderDisabled}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlButtonClose" TargetType="{x:Type Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="53.2963" Canvas.Top="0.125" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonWindowBorder}" Data="{DynamicResource IconButtonWindow}" Fill="{DynamicResource BrushButtonWindowBackground}"/>
                        <Path Width="6.74095" Height="6.00024" Canvas.Left="57.1968" Canvas.Top="4.39581" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}" Data="{DynamicResource IconButtonClose}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{x:Null}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundDisabled}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonWindowBorderDisabled}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON WINDOW-->
</ResourceDictionary>